package com.feign.hystrix;

import com.feign.service.SsoClientService;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Created by yangjianbo on 2016/10/19.
 */
//@Component
public class SsoClientServiceHystrix implements SsoClientService {
    @Override
    public String login(@RequestParam(value = "username") String username, @RequestParam(value = "password") String password, @RequestParam(value = "clientAgent") String clientAgent, @RequestParam(value = "clientIp") String clientIp, @RequestParam(value = "referer") String referer) {
        return "登录失败";
    }

    @Override
    public String get(@RequestParam(value = "clientAgent") String clientAgent, @RequestParam(value = "clientIp") String clientIp) {
        return "获取信息失败";
    }

    @Override
    public String out(@RequestParam(value = "clientIp") String clientIp, @RequestParam(value = "clientAgent") String clientAgent) {
        return "登出失败";
    }
}
